﻿using UnityEngine;

/**
 * 攻击状态
 */

public class StateAttack : IState{
    public void Enter(EntityBase entity, params object[] args){
        //PECommon.Log("Enter StateAttack");
        entity.canControl = false;
        entity.SetDir(Vector2.zero);
    }

    public void Process(EntityBase entity, params object[] args){
        //PECommon.Log("Process StateAttack");
        //技能效果表现
        entity.SkillAttack((int)args[0]);
    }

    public void Exit(EntityBase entity, params object[] args){
        entity.ExitCurSkill();
    }
}
